package com.xhwl.data.service.personal;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.personnel.StaffBusinessType;
import com.xhwl.common.query.cent.sdata.personal.StaffBusinessTypeQuery;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: 企业通讯录业务类型配置
 * @author: linruipeng
 * @create: 2022-05-20 10:30
 **/
@RestController
public interface IStaffBusinessTypeService extends IService<StaffBusinessType> {


    Page page(StaffBusinessTypeQuery staffBusinessTypeQuery, Page page);

    @PostMapping("/staff-business-type-service/list")
    List<StaffBusinessType> list(@RequestPart StaffBusinessTypeQuery staffBusinessTypeQuery);


    ResultJson create(StaffBusinessType staffBusinessType);


    ResultJson update(StaffBusinessType staffBusinessType);


    ResultJson getOne(Integer id);

}
